home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
edge_simple.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
633b
|
33 lines
/*
* SimpleEdge.ifx.pre
* Written by Thomas Krehbiel
*
* Simple Edge Detect effect.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
startedge = GETCLIP('Autofx_SimpleEdge_Start')
IF startedge = "" THEN startedge = 25
Gadget.1 = 'INTEGER 250 5 60 14 "Edge Detect Threshold:"' startedge 'LO=1 HI=255'
Gadget.2 = 'END'
NewComplexRequest '"Simple Edge Detect"' Gadget 330 40
IF rc ~= 0 THEN EXIT rc
startedge = result.1
CALL SETCLIP('Autofx_SimpleEdge_Start', startedge)
EXIT